projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97f6749
)
(c-electric-slash): Replace wrong use of `kill-region' by
author
Alan Mackenzie
<acm@muc.de>
Sat, 21 Apr 2007 20:05:53 +0000
(20:05 +0000)
committer
Alan Mackenzie
<acm@muc.de>
Sat, 21 Apr 2007 20:05:53 +0000
(20:05 +0000)
`delete-region'.
lisp/progmodes/cc-cmds.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/cc-cmds.el
b/lisp/progmodes/cc-cmds.el
index 9ef4aaace72f71acb8b046a50c20a5544c2e23ce..27796e050223f09d564ed9f5f400ecead2f607b2 100644
(file)
--- a/
lisp/progmodes/cc-cmds.el
+++ b/
lisp/progmodes/cc-cmds.el
@@
-856,7
+856,7
@@
is inhibited."
(narrow-to-region (point-min) (point))
(back-to-indentation)
(looking-at (concat c-current-comment-prefix "[ \t]*$")))))
- (
kill
-region (progn (forward-line 0) (point))
+ (
delete
-region (progn (forward-line 0) (point))
(progn (end-of-line) (point)))
(insert-char ?* 1)) ; the / comes later. ; Do I need a t (retain sticky properties) here?